/*! Eduow ajax navigation
	Copyright (c) 2010 Nikolay Stoitsev
	This software is released under the GPL v. 2 http://www.gnu.org/licenses/gpl-2.0.html
*/

var the_content;

function get_content(the_content){

    if(the_content.substring(0,1) != '/'){
	the_content = '/'+the_content;
    }	

    jQuery.ajax({
        'type':'GET',
        'dataType' : 'html',
        'url': the_content,
        'beforeSend':function(){
            $('#content').html('<h1>Loading...</h1>');
        },
        'success':function(data){
            $('#content').html(data);
            $("#content a:not(.static)").each(function(){
                $(this).attr('href', "#"+$(this).attr("href"));
            });

        }

    });
    return true;

}



